package com.iyimo.control{
	import com.iyimo.event.XEvent;
	
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;
	
	public class BasePanel extends Sprite{
		/**
		 * 关闭按钮
		 */		
		protected var _closeBtn:Button;
		
		/**
		 * 确认按钮
		 */		
		protected var _confirmBtn:Button;
		
		/**
		 * 取消按钮
		 */		
		protected var _cancelBtn:Button;
		
		/**
		 * 读取尽量的原始素材
		 */		
		protected var _rawStyle:MovieClip;
		
		public function BasePanel(style:MovieClip){
			super();
			_rawStyle = style;
		}
		
		protected function onClose(e:Event = null):void{
			dispatchEvent(new XEvent(XEvent.CLOSE_EVENT));
		}
		
		protected function onConfirm(e:Event = null):void{
			dispatchEvent(new XEvent(XEvent.CONFIRM_EVENT));
		}
		
		protected function onCancle(e:Event = null):void{
			dispatchEvent(new XEvent(XEvent.CANCLE_EVENT));
		}
	}
}